package com.yan.lesson01;

import java.net.SocketException;

public class TalkStudent {
    public static void main(String[] args) {
        //开启两个线程
        try {
            new Thread(new TalkSend(7777, "localhost", 9999)).start();
            new Thread(new TalkReceive(8888, "老师")).start();
        } catch (SocketException e) {
            throw new RuntimeException(e);
        }
    }
}
